package com.foreknow.oppExer1.exer4;

/**
 * @author shkstart
 * @create 2021-07-28 13:52
 */
public class Adventure {
    public static void main(String[] args) {
        Hero hb=new Hero("hb");
        hb.swim();
        hb.fight("aaa");
        hb.fly();
        CanFly cf=hb;
        cf.fly();
        CanSwim cs=hb;
        cs.swim();
        ActionCharacter ac=hb;
        ac.fight("aaaa");
        ac.speak("superhero");


    }
}
